package com.example.demo.factoryMethodPattern.pen;

public class RedPenCore extends PenCore{
    public RedPenCore(){
        super("红色");
    }
    @Override
    public void writeWord(String s){
        System.out.println("用["+color+"笔芯]写出{"+color+"}的字"+s);
    }
}
